package com.duanjw.mybatis.spring.service.impl;

import com.duanjw.mybatis.spring.mapper.UserMapper;
import com.duanjw.mybatis.spring.service.UserService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author duanjw
 */
@Service
public class UserServiceImpl implements UserService {
    public UserMapper userMapper;

    public UserServiceImpl(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Override
    public List list() {
        return userMapper.list();
    }
}
